package TemplateCode.Discount;

public class ChildrenDiscount extends DiscountStrategy{
    @Override
    public double calculate(double price) {
        return price>=20?price-10:price;
    }
}
